package com.gegong.imr.client.tasks;

import com.google.common.collect.ImmutableMap;
import okhttp3.Headers;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;

import java.util.concurrent.TimeUnit;

public interface OkHttpPage {

    OkHttpClient client = new OkHttpClient().newBuilder()
            .callTimeout(0, TimeUnit.SECONDS)
            .readTimeout(0, TimeUnit.SECONDS)
            .build();

    MediaType defaultPostMediaType = MediaType.parse(com.google.common.net.MediaType.JSON_UTF_8.toString());

    Headers defaultHeaders = Headers.of(
            ImmutableMap.<String, String>builder()
                    .put("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36")
                    .build()
    );


}
